package com.tarena.lbs.business.dao.repository.impl;

import com.tarena.lbs.business.dao.mapper.BusinessCategoryMapper;
import com.tarena.lbs.business.dao.repository.BusinessCategoryRepository;
import com.tarena.lbs.business.pojo.vo.BusinessCategoryVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class BusinessCategoryRepositoryImpl implements BusinessCategoryRepository {
    @Autowired
    private BusinessCategoryMapper businessCategoryMapper;
    @Override
    public List<BusinessCategoryVO> findAll() {
        return businessCategoryMapper.selectAll();
    }
}
